/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.structure;

/**
 *
 * @author dell
 */
import entity.support.Obj;
import java.util.Date;
import java.util.Map;
public class Law extends Obj
{
//columns_______________________________________________________________________
private int type;    
private String code;
private String department;
private Date publishtime;
private Date validatetime;
private String content;
//functions_____________________________________________________________________
     //operator________________________________________________________________
public Law()
{
     
}
public Law(Obj o)
{
     this.id=o.getId();
     this.name=o.getName();
     this.intime=o.getIntime();
     this.updatetime=o.getUpdatetime();
}
public Law(Map<String,String> map)
{
     
}
    //getter____________________________________________________________________
public int getType() 
{
     return type;
}
public String getCode() 
{
     return code;
}
public String getDepartment() 
{
     return department;
}
public Date getPublishtime() 
{
     return publishtime;
}
public Date getValidatetime() 
{
     return validatetime;
}
public String getContent() 
{
     return content;
}
    //setter____________________________________________________________________
public void setType(int type) 
{
     this.type = type;
}
public void setCode(String code) 
{
     this.code = code;
}
public void setDepartment(String department) 
{
     this.department = department;
}
public void setPublishtime(Date publishtime) 
{
     this.publishtime = publishtime;
}
public void setValidatetime(Date validatetime) 
{
     this.validatetime = validatetime;
}
public void setContent(String content) 
{
     this.content = content;
}
    //toString__________________________________________________________________
@Override
public String toString()
{
     return super.toString()+"\t"+type+"\t"+code+"\t"+department+"\t"+publishtime+"\t"
             +validatetime+"\t"+content;
}
}
